package com.atguigu.springcloud.alibaba.controller;

import org.springframework.beans.factory.annotation.Value;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
public class PaymentController {

    @Value("${server.port}")
    private String serverName;

    @GetMapping("/payment/get")
    public String getName(){
        return  serverName;
    }
}
